#pragma once
//#pragma disable warning 4351
#include <string>
using namespace std;

typedef struct _PriceState
{
	double Quote;
	long   QuoteQty;
	long   QuoteCnt;
} PriceState;

class CCurPriceInfo
{
public:
	CCurPriceInfo()
	{
		Refresh();
	}
	~CCurPriceInfo();

	void Refresh()
	{
		Close = 0.0;
		OpenInterest = 0;
		Volume = 0;

		int i = 0;
		for (i = 0; i < 5; i++)
			SellQuote[i] = 0;
		for (i = 0; i < 5; i++)
			BuyQuote[i] = 0;

		TotalSellQouteQty = 0;
		for (i = 0; i < 5; i++)
			SellQuoteQty[i] = 0;

		TotalBuyQuoteQty = 0;
		for (i = 0; i < 5; i++)
			BuyQuoteQty[i] = 0;

		TotalSellQuoteCnt = 0;
		for (i = 0; i < 5; i++)
			SellQuoteCnt[i] = 0;

		TotalBuyQuoteCnt = 0;
		for (i = 0; i < 5; i++)
			BuyQuoteCnt[i] = 0;

		for (i = 0; i < 5; i++)
		{
			SellPrice[i].Quote = 0;
			SellPrice[i].QuoteCnt = 0;
			SellPrice[i].QuoteQty = 0;

			BuyPrice[i].Quote = 0;
			BuyPrice[i].QuoteCnt = 0;
			BuyPrice[i].QuoteQty = 0;
		}

	}

	PriceState SellPrice[5];
	PriceState BuyPrice[5];

	double Close;
	long OpenInterest;
	long Volume;

	double SellQuote[5];
	double BuyQuote[5];

	CString StrSellQuote[5];
	CString StrBuyQuote[5];

	long TotalSellQouteQty;
	long SellQuoteQty[5];

	long TotalBuyQuoteQty;
	long BuyQuoteQty[5];

	long TotalSellQuoteCnt;
	long SellQuoteCnt[5];

	long TotalBuyQuoteCnt;
	long BuyQuoteCnt[5];
};

